$ () ->
	$(".create_btn").click (e) ->
		param =
			prev_gi: $("#prev_gi").val()
			next_gi: $("#next_gi").val()

		$.post "/api/record/gi-record", param, (res) ->
			if res.status.errCode is 0
				alert "添加成功"
			else
				alert res.status.message